<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    li{
        list-style: none;
    }
</style>
<body>
    <div id="app">
        <p>
            品牌：<input v-model="userInfo.brand" type="text">
        </p>
        <p>
            车型：<input v-model="userInfo.series" type="text">
        </p>
        <p>
            年份：<input v-model="userInfo.creation" type="text">
        </p>
        <ul>
            <li v-for="(item ,index) in newArr" :key="index">
                {{item.brand}} /{{item.series}} /{{item.creation}}
            </li>
        </ul>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        new Vue({
            el: "#app",
            data: {
                val: "",
                userInfo: {
                    brand: "",
                    series: "",
                    creation: ""
                },
                arr: [
                    {
                        brand: "奥迪",
                        series: "奥迪A4",
                        creation: "2021"
                    },
                    {
                        brand: "奥迪",
                        series: "奥迪A6",
                        creation: "2021"
                    },
                    {
                        brand: "奥迪",
                        series: "奥迪A6",
                        creation: "2020"
                    },
                    {
                        brand: "奥迪",
                        series: "奥迪A8",
                        creation: "2020"
                    },
                    {
                        brand: "奥迪",
                        series: "奥迪A8",
                        creation: "2020"
                    },
                    {
                        brand: "宝马",
                        series: "宝马x3",
                        creation: "2020"
                    },
                    {
                        brand: "奔驰",
                        series: "奔驰e3",
                        creation: "2020"
                    },
                    {
                        brand: "大众",
                        series: "大众z1",
                        creation: "2020"
                    },
                    {
                        brand: "宝马",
                        series: "宝马i3",
                        creation: "2020"
                    },
                    {
                        brand: "宝马",
                        series: "宝马x7",
                        creation: "2020"
                    },
                ]
            },
            methods: {

            },
            computed: {
                newArr(){
          var _this = this;
          var newArr = [];
          _this.arr.map(function (item) {
            if(item.brand.search(_this.userInfo.brand) != -1 && item.series.search(_this.userInfo.series) !=-1 && item.creation.search(_this.userInfo.creation) != -1) {
              newArr.push(item)
            }
          });
          return newArr;
        }
            },
        })

    </script>
</body>

</html>